package com.yuke.cloud.service.smc.service.impl;

import com.yuke.cloud.service.smc.dao.WebShopAddMapper;
import com.yuke.cloud.service.smc.entity.WebShopAdd;
import com.yuke.cloud.service.smc.service.WebShopAddService;
import com.yuke.cloud.common.core.support.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created by zys on 2018/12/15.
 */
@Service
@Transactional
public class WebShopAddServiceImpl extends BaseService<WebShopAdd> implements WebShopAddService {
    @Resource
    private WebShopAddMapper webShopAddMapper;

    @Override
    public int save(WebShopAdd record) {
        record.setWebShopAddId(generateId());
        return super.save(record);
    }
}
